package com.tfjybj.itoo.exam.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

import javax.persistence.Column;
import java.io.Serializable;
import java.util.List;

/**
 * TeEvaluationPaperDetailModel
 * 评教问卷详情表
 *
 * @author 杨江涛
 * @version 2.0.0
 * @since 2.0.0 2018-12-18 18:19:48
 */
@ApiModel(value = "TeEvaluationPaperDetailModel:评教问卷详情表")
@Data
@NoArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
public class EvaluationPaperDetailModel extends EvaluationMainModel implements Serializable {

    //region 模板逆向生产来自TeEvaluationPaperDetailEntity的属性
    /**
     * id
     */
    @ApiModelProperty(value = "teEvaluationPaperDetail主键")
    @Column(name = "mainId")
    private String mainId;

    @ApiModelProperty(value = "teEvaluationPaperDetail主键")
    @Column(name = "paperId")
    private String paperId;


    @ApiModelProperty(value = "teEvaluationPaperDetail主键")
    @Column(name = "id")
    private String id;


    /**
     * 学年学期id
     */
    @ApiModelProperty(value = "学年学期id")
    @Column(name = "schoolYearId")
    private String schoolYearId;
    /**
     * 问卷id
     */
    @ApiModelProperty(value = "问卷id")
    private String evaluationPaperId;

    /**
     * 题型id
     */
    @ApiModelProperty(value = "题型id")
    private String questionTypeId;

    /**
     * 题型名称
     */
    @ApiModelProperty(value = "题型名称")
    private String questionTypeName;

    /**
     * 题型名称
     */
    @ApiModelProperty(value = "题型Code")
    private String questionCode;


    /**
     * 问卷试题题干id
     */
    @ApiModelProperty(value = "问卷试题题干id")
    private String evaluationMainId;


    /**
     * 问卷试题题干id
     */
    @ApiModelProperty(value = "题干内容")
    private String evaluationContent;
    /**
     * 题分数
     */
    @ApiModelProperty(value = "题分数")
    private Double score;
    /**
     * 问卷试题顺序
     */
    @ApiModelProperty(value = "问卷试题顺序", example = "0")
    private Integer questionOrder;

    /**
     * 问卷试题顺序
     */
    @ApiModelProperty(value = "选项")
    private List<EvaluationSubModel> evaluationSubModelList;


    //endregion

    /* *****************************以下是非模板生成的内容************************************ */

    /**
     * 题干内容
     */
    @ApiModelProperty(value = "题干内容")
    private EvaluationMainModel evaluationMainModel;

    /**
     * 题干内容
     */
    @ApiModelProperty(value = "学生是否作答")
    private boolean done;


    /**
     * 问卷名称
     */
    @ApiModelProperty(value = "问卷名称")
    private String name;

    /**
     * 课程属性id（字典：理论课、实践课）
     */
    @ApiModelProperty(value = "课程属性id（字典：理论课、实践课）")
    private String coursePropertyId;

    /**
     * 问卷总分数
     */
    @ApiModelProperty(value = "问卷总分数")
    private Double paperScore;

    /**
     * 状态（草稿状态0，运行状态1 暂停状态2）
     */
    @ApiModelProperty(value = "状态（草稿状态0，运行状态1 暂停状态2）", example = "0")
    private Integer status;
    /**
     * （0教师评教问卷 1课程评教问卷）
     */
    @ApiModelProperty(value = "（0教师评教问卷 1课程评教问卷）", example = "0")
    private Integer type;

    /**
     * 评教建议
     */
    @ApiModelProperty(value = "评教建议")
    private String advice;

    /**
     * 答题记录表id
     */
    @ApiModelProperty(value = "答题记录表id")
    private String recordId;
}
